% This script compile KMC as a mex function and can be used in 
file1 = '../KMC/1DTRI_OOP_090413/lattice_1DTRI.cpp';
file2 = 'KMC_mex.cpp';
mex file1